<ul>
{% for category in entry.categories %}
  <li><a href="/category/{{ category.id }}">{{ category.name }}</a></li>
{% endfor %}
</ul>